
//=============================================================================
// Copyright (C) 2017, Active-Semi International
//
// THIS SOFTWARE IS SUBJECT TO A SOURCE CODE LICENSE AGREEMENT WHICH PROVIDES,
// AMONG OTHER THINGS:  (i) THAT IT CAN BE USED ONLY TO ADAPT THE LICENSEE'S
// APPLICATION TO PAC PROCESSORS SUPPLIED BY ACTIVE-SEMI INTERNATIONAL;
// (ii) THAT  IT IS PROVIDED "AS IS" WITHOUT WARRANTY;  (iii) THAT
// ACTIVE-SEMICONDUCTOR IS NOT LIABLE FOR ANY INDIRECT DAMAGES OR FOR DIRECT
// DAMAGES EXCEEDING US$1,500;  AND (iv) THAT IT CAN BE DISCLOSED TO AND USED
// ONLY BY CERTAIN AUTHORIZED PERSONS.
//
//=============================================================================

#include "sensorless.h"

#ifdef SINE_WAVE_START_UP_ENABLE
const fix16_t sine_wave_3phase[60][3] =
{
	{0x00010000,	0x00007C1C,	0x00000000},
	{0x0000FE98,	0x00006406,	0x00000000},
	{0x0000FA67,	0x00004AD8,	0x00000000},
	{0x0000F378,	0x000030D8,	0x00000000},
	{0x0000E9DE,	0x0000164F,	0x00000000},
	{0x0000DFE7,	0x00000000,	0x00000000},
	{0x0000EBA6,	0x00000000,	0x00001AC2},
	{0x0000F4D0,	0x00000000,	0x00003539},
	{0x0000FB4B,	0x00000000,	0x00004F1B},
	{0x0000FF06,	0x00000000,	0x0000681F},
	{0x0000FFF6,	0x00000000,	0x00008000},
	{0x0000FE17,	0x00000000,	0x00009679},
	{0x0000F970,	0x00000000,	0x0000AB4C},
	{0x0000F20D,	0x00000000,	0x0000BE3E},
	{0x0000E803,	0x00000000,	0x0000CF1B},
	{0x0000DB6F,	0x00000000,	0x0000DDB3},
	{0x0000CC73,	0x00000000,	0x0000E9DE},
	{0x0000BB39,	0x00000000,	0x0000F378},
	{0x0000A7F3,	0x00000000,	0x0000FA67},
	{0x000092D5,	0x00000000,	0x0000FE98},
	{0x00007C1C,	0x00000000,	0x00010000},
	{0x00006406,	0x00000000,	0x0000FE98},
	{0x00004AD8,	0x00000000,	0x0000FA67},
	{0x000030D8,	0x00000000,	0x0000F378},
	{0x0000164F,	0x00000000,	0x0000E9DE},
	{0x00000000,	0x00000000,	0x0000DFE7},
	{0x00000000,	0x00001AC2,	0x0000EBA6},
	{0x00000000,	0x00003539,	0x0000F4D0},
	{0x00000000,	0x00004F1B,	0x0000FB4B},
	{0x00000000,	0x0000681F,	0x0000FF06},
	{0x00000000,	0x00008000,	0x0000FFF6},
	{0x00000000,	0x00009679,	0x0000FE17},
	{0x00000000,	0x0000AB4C,	0x0000F970},
	{0x00000000,	0x0000BE3E,	0x0000F20D},
	{0x00000000,	0x0000CF1B,	0x0000E803},
	{0x00000000,	0x0000DDB3,	0x0000DB6F},
	{0x00000000,	0x0000E9DE,	0x0000CC73},
	{0x00000000,	0x0000F378,	0x0000BB39},
	{0x00000000,	0x0000FA67,	0x0000A7F3},
	{0x00000000,	0x0000FE98,	0x000092D5},
	{0x00000000,	0x00010000,	0x00007C1C},
	{0x00000000,	0x0000FE98,	0x00006406},
	{0x00000000,	0x0000FA67,	0x00004AD8},
	{0x00000000,	0x0000F378,	0x000030D8},
	{0x00000000,	0x0000E9DE,	0x0000164F},
	{0x00000000,	0x0000DFE7,	0x00000000},
	{0x00001AC2,	0x0000EBA6,	0x00000000},
	{0x00003539,	0x0000F4D0,	0x00000000},
	{0x00004F1B,	0x0000FB4B,	0x00000000},
	{0x0000681F,	0x0000FF06,	0x00000000},
	{0x00008000,	0x0000FFF6,	0x00000000},
	{0x00009679,	0x0000FE17,	0x00000000},
	{0x0000AB4C,	0x0000F970,	0x00000000},
	{0x0000BE3E,	0x0000F20D,	0x00000000},
	{0x0000CF1B,	0x0000E803,	0x00000000},
	{0x0000DDB3,	0x0000DB6F,	0x00000000},
	{0x0000E9DE,	0x0000CC73,	0x00000000},
	{0x0000F378,	0x0000BB39,	0x00000000},
	{0x0000FA67,	0x0000A7F3,	0x00000000},
	{0x0000FE98,	0x000092D5,	0x00000000},
};
#endif
